#[macro_use]
extern crate rbatis;
#[macro_use]
extern crate lazy_static;

use salvo::prelude::*;

mod handler;
mod router;
mod utils;

#[tokio::main]
async fn main() {


    
    tracing_subscriber::fmt().init();
	
    utils::db::init_rbatis().await;

    Server::new(router::create_router())
        .bind(([0, 0, 0, 0], 17878))
        .await;
}
